public class Text {
    public static void main(String[] args) {
        // 实例化 双向链表
        myLinkedList linkedList = new myLinkedList();
        linkedList.addFirst(30);
        linkedList.addFirst(20);
        linkedList.addFirst(10);
        linkedList.display();
        linkedList.addIndex(0,11);
        linkedList.addIndex(2,9);
        linkedList.addIndex(1,5);
        linkedList.display();

    }
}
